package com.swak.rpc.core;

import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.swak.registry.URL;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RpcContext {
	protected final Map<String, Object> attachments = new HashMap<>();
	private final Map<String, Object> values = new HashMap<String, Object>();
	private List<URL> urls;
	private URL url;
	private String methodName;
	private Class<?>[] parameterTypes;
	private Object[] arguments;
	private InetSocketAddress localAddress;
	private InetSocketAddress remoteAddress;
	private String remoteApplicationName;
	private Object request;
	private Object response;
}